import request from "../utils/request.js";

export async function addMemberApi(member) {
    return await request.post('/api/member/add', member)
}

export async function updateMemberApi(member) {
    return await request.post('/api/member/update', member)
}

export async function deleteMemberApi(id) {
    return await request.post('/api/member/delete', {}, {
        params: {
            id: id
        }
    })
}

export async function getMemberListApi() {
    return await request.post('/api/member/list')
}